package com.esd.crm.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.esd.crm.entity.Address;
import com.esd.crm.mapper.AddressMapper;
import com.esd.crm.service.AddressService;

@Service
public class AddressServiceImpl implements AddressService {

	@Autowired
	private AddressMapper mapper;

	@Override
	public int deleteByPrimaryKey(Integer id) {
		// TODO Auto-generated method stub
		return mapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(Address record) {
		// TODO Auto-generated method stub
		return mapper.insert(record);
	}

	@Override
	public int insertSelective(Address record) {
		// TODO Auto-generated method stub
		return mapper.insertSelective(record);
	}

	@Override
	public Address selectByPrimaryKey(Integer id) {
		// TODO Auto-generated method stub
		return mapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(Address record) {
		// TODO Auto-generated method stub
		return mapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(Address record) {
		// TODO Auto-generated method stub
		return mapper.updateByPrimaryKey(record);
	}

	@Override
	public List<Address> selectByParam(Map<String, Object> param) {
		// TODO Auto-generated method stub
		return mapper.selectByParam(param);
	}

	@Override
	public Integer selectByParamCount(Map<String, Object> param) {
		// TODO Auto-generated method stub
		return mapper.selectByParamCount(param);
	}

	@Override
	public int updateFrequently(Address record) {
		// TODO Auto-generated method stub
		return mapper.updateFrequently(record);
	}

	@Override
	public Address getFrequentlyDef(Map<String, Object> param) {
		// TODO Auto-generated method stub
		return mapper.getFrequentlyDef(param);
	}

}
